<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <heima></heima>
    </div>
</body>

<script>
    // 定义一个组件
    const heima = {
        data() {
            return {
                msg: '黑马56'
            }
        },
        template: '<div>{{msg}}</div>'
    }

    const app = new Vue({
        el: '#app',
        components: {
            heima
        }
    })
</script>
</html>